package com.njlime.cms.repository.sys;

import com.njlime.cms.entities.Channel;
import com.njlime.core.helper.PageBean;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;
import java.util.Map;

/**
 * Created by Dean on 2017-7-27.
 */
public interface ChannelDao extends JpaRepository<Channel, Integer>,JpaSpecificationExecutor<Channel> {
    Map<String, Object> getChannelByShort(int unitId, int channelShort);
    Map<String, Object> getChannelById(int unitId, int channelId);
    void update(Channel info);
    List<Channel> getNewsChannelList(int unitId);
    List<Channel> getChannelList(int unitId, int channelType);
    List<Channel> getAllChannelList(int unitId);
    void settingColor(Channel info);
}
